#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2025/2/2 22:12
# @Author  : Ramsey
# @Site    : zh
# @File    : __init__.py.py
# @Software: PyCharm
from abc import ABCMeta


class ItemMate(ABCMeta):
    def __new__(mcs, name, bases, attrs):
        field: dict = {}
        for key, value in attrs.items():
            if isinstance(value, Field):
                field[key] = value
        cls_instance = super().__new__(mcs, name, bases, attrs)
        cls_instance.FIELDS = field
        return cls_instance


class Field(dict):
    pass


if __name__ == "__main__":
    pass
